//package com.cskaoyan.config;
//
//import com.cskaoyan.bean.param.FileParam;
//import org.hibernate.validator.HibernateValidator;
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.validation.Validator;
//import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
//import org.springframework.web.bind.annotation.ResponseBody;
//import org.springframework.web.servlet.config.annotation.CorsRegistry;
//import org.springframework.web.servlet.config.annotation.EnableWebMvc;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @author stone
// * @date 2022/01/06 16:19
// */
//@EnableWebMvc
//@ComponentScan("com.cskaoyan.controller")
//public class WebConfiguration implements WebMvcConfigurer {
//
//    //mvc:annotation-driven; 也会把当前类注册为容器中的组件； 也会当做是配置类
//
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/pic/**").addResourceLocations("file:d:/project2/image/");
//    }
//
//}
